package com.szlanyou.thirdsdk.retrofit.client;

import androidx.annotation.StringDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @author 陈章
 * create at 2021/7/14 15:03
 * desc:
 * 请求类型：GET、POST、上传、下载
 */
@Retention(RetentionPolicy.SOURCE)
@StringDef({
        RequestType.GET,
        RequestType.POST,
        RequestType.FILE_UPLOAD,
        RequestType.FILE_DOWNLOAD
})
public @interface RequestType {
    /**
     * GET请求
     */
    String GET = "GET";

    /**
     * POST请求
     */
    String POST = "POST";

    /**
     * 文件上传
     */
    String FILE_UPLOAD = "FILE_UPLOAD";

    /**
     * 文件下载
     */
    String FILE_DOWNLOAD = "FILE_DOWNLOAD";
}
